<?php

declare(strict_types=1);

namespace App\Amqp\Consumer;

use App\Service\Client\CertificationService;
use Hyperf\Amqp\Annotation\Consumer;
use Hyperf\Amqp\Message\ConsumerMessage;
use Hyperf\Di\Annotation\Inject;

/**
 * 母公司-企业审核通知（累计5条）
 * @Consumer(exchange="noticeCertificationCompany", routingKey="noticeCertificationCompany", queue="noticeCertificationCompanyConsumer", name ="NoticeCertificationCompanyConsumer", nums=1)
 */
class NoticeCertificationCompanyConsumer extends ConsumerMessage
{
    /**
     * @Inject()
     * @var CertificationService
     */
    protected $certificationService;

    public function consume($data): string
    {
        return $this->certificationService->noticeCertificationCompany();
    }
}
